#ifndef V1_USER_H
#define V1_USER_H

#include <drogon/HttpController.h>

using namespace drogon;

namespace v1 {
class User : public drogon::HttpController<User> {
public:
	METHOD_LIST_BEGIN
	// http://localhost:8090/v1/user/{id}/info?token={token}
	METHOD_ADD(User::getInfo, "/{1}/info?token={2}", Get);
	METHOD_LIST_END

	void getInfo(const HttpRequestPtr &req,
			std::function<void(const HttpResponsePtr &)> &&callback,
			const std::string &userId,
			const std::string &token) const;
};
} // namespace v1

#endif // V1_USER_H